
{extend name="public/common"} 
{block name="body"}
<title>基本设置</title>
<script type="text/javascript" src="__SYSMET__/template/js/bootstrap.min.js"></script>
<script type="text/javascript" src="__SYSMET__/template/js/echarts.js"></script>

<style type="text/css">
	.ht_title{
		display: inline-block;
		text-align: center;
	}
	.title_content{width:100%;height:auto;display:none;}
</style>

</head>
<body>
  <nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i>
   
    统计中心
    <span class="c-gray en">&gt;</span>
    平台报表
    <a class="btn btn-success radius r"
      style="line-height: 1.6em; margin-top: 3px"
      href="javascript:location.replace(location.href);" title="刷新">
      <i class="Hui-iconfont">&#xe68f;</i>
    </a>
  </nav>



    
  
<div style="width: 98%;background-color: #eeeeee;margin: 10px 20px;border: 1px solid #d2d2d2;" class="title_hrader">
	
	<div style="width: 100%;height: 30px;color: #0072a8;font-size: 20px;margin-top: 10px;margin-left: 15px;" id="title_cw" >财务分析</div>
	<div style="width: 100%;margin-top: 10px;margin-left: 15px;margin-bottom:10px;" >
		
		<div class="ht_title" style="height: 40px;padding:0 15px;">
			<div style="height: 30px;background-color: #3e5057;display: inline-block;color: white;margin-top: 5px;line-height: 30px;border-radius: 5px;padding:0 15px;">今日盈亏:{$today.today_yk|sprintf="%.2f",###}元</div>
	</div>
		
		<div class="ht_title" style="height: 40px;padding:0 50px;">
			<div style="height: 30px;background-color: #978c65;display: inline-block;color: white;margin-top: 5px;line-height: 30px;border-radius: 5px;padding:0 15px;">今日充值:{$today.chongzhi.6|sprintf="%.2f",###}元</div>
			<div style="height: 30px;background-color: #d7b77e;display: inline-block;color: white;margin-top: 5px;line-height: 30px;border-radius: 5px;padding:0 15px;">线上充值:{$today.xianshang_cz.6|sprintf="%.2f",###}元</div>
			<div style="height: 30px;background-color: #97bcc3;display: inline-block;color: white;margin-top: 5px;line-height: 30px;border-radius: 5px;padding:0 15px;">线下充值:{$today.xianxia_cz.6|sprintf="%.2f",###}元</div>
			<div style="height: 30px;background-color: #efb85c;display: inline-block;color: white;margin-top: 5px;line-height: 30px;border-radius: 5px;padding:0 15px;">人工充值:{$today.rengong_cz.6|sprintf="%.2f",###}元</div>
		</div>
		
		<div class="ht_title" style="height: 40px;padding:0 50px;">
			<div style="height: 30px;background-color: #748381;display: inline-block;color: white;margin-top: 5px;line-height: 30px;border-radius: 5px;padding:0 15px;">今日取出:{$today.tixian.6|sprintf="%.2f",###}元</div>
			<div style="height: 30px;background-color: #b49c7f;display: inline-block;color: white;margin-top: 5px;line-height: 30px;border-radius: 5px;padding:0 15px;">会员提现:{$today.member_tx.6|sprintf="%.2f",###}元</div>
			<div style="height: 30px;background-color: #6e7275;display: inline-block;color: white;margin-top: 5px;line-height: 30px;border-radius: 5px;padding:0 15px;">人工取出:{$today.rengong_tx.6|sprintf="%.2f",###}元</div>
		</div>
		
		<div class="ht_title" style="height: 40px;padding:0 15px;">
			<div style="height: 30px;background-color: #4e8694;display: inline-block;color: white;margin-top: 5px;line-height: 30px;border-radius: 5px;padding:0 15px;">今日彩金:{$today.caijin.6|sprintf="%.2f",###}元</div>
			<div style="height: 30px;background-color: #8c958a;display: inline-block;color: white;margin-top: 5px;line-height: 30px;border-radius: 5px;padding:0 15px;">今日返水:{$today.fanshui.6|sprintf="%.2f",###}元</div>
		</div>
		
	</div>
	<div id="title_cw_content" class="title_content"  style="height:1090px;" >
	
	
	<div style="width: 100%;margin-top: 10px;margin-left: 15px;margin-bottom: 20px;overflow: hidden;width:1760px;">
		
		<div id="main" style="width: 1670px;height: 400px;padding-top: 20px;">
			
		</div>
		<div style="margin-left:36%;font-size:20px;margin-bottom: 45px;">近7日财务分析图</div>
		<div id="tbSecond" style="width: 735px;height: 400px;float: left;">
		
		</div>
		
		<div id="tbSecond2" style="width:735px;height: 400px;float: left;">
			
		</div>
		<div style="margin-left:22%;font-size:20px;display: inline-block;">今日充值分析图</div>	
	    <div style="margin-left: 40%;font-size: 20px;display: inline-block;">今日提现分析图</div>	
	</div>
	</div>
</div>

<div style="width: 98%;background-color: #eeeeee;margin: 10px 20px;border: 1px solid #d2d2d2;" class="title_hrader">
	
	<div style="width: 100%;height: 30px;color: #0072a8;font-size: 20px;margin-top: 10px;margin-left: 15px;" id="title_hy" >会员分析</div>
	<div style="width: 100%;margin-top: 10px;margin-left: 15px;margin-bottom:10px;">
	
		
		<div class="ht_title" style="height: 40px;padding:0 15px;">
			<div style="height: 30px;background-color: #f2c37c;display: inline-block;color: white;margin-top: 5px;line-height: 30px;border-radius: 5px;padding:0 15px;">今日新增:{$member_people.number_people.6}人</div>
			<div style="height: 30px;background-color: #5c5464;display: inline-block;color: white;margin-top: 5px;line-height: 30px;border-radius: 5px;padding:0 15px;">新增存款:{$member_people.add_chongzhi.6}人</div>
			<div style="height: 30px;background-color: #7d9490;display: inline-block;color: white;margin-top: 5px;line-height: 30px;border-radius: 5px;padding:0 15px;">新增代理:{$member_people.add_dl.6}人</div>
			<div style="height: 30px;background-color: #3d5464;display: inline-block;color: white;margin-top: 5px;line-height: 30px;border-radius: 5px;padding:0 15px;">新增会员:{$member_people.add_huiyuan.6}人</div>
			<div style="height: 30px;background-color: #584f4c;display: inline-block;color: white;margin-top: 5px;line-height: 30px;border-radius: 5px;padding:0 15px;">新增试玩:{$member_people.add_swmember.6}人</div>
		</div>
		
		
		
	</div>
	<div id="title_hy_content" class="title_content" style="height:500px;">
	
	
	<div style="width: 1670px;margin-top: 10px;margin-left: 15px;margin-bottom: 20px;overflow: hidden;">
		
		<div id="main2" style="width: 1670px;height: 400px;">
			
		</div>
		<div style="margin-left:36%;font-size:20px;">近7日新增会员分析图</div>

	</div>
	</div>
</div>

<div style="width: 98%;background-color: #eeeeee;margin: 10px 20px;border: 1px solid #d2d2d2;" class="title_hrader">
	
	<div style="width: 100%;height: 30px;color: #0072a8;font-size: 20px;margin-top: 10px;margin-left: 15px;" id="title_dl" >代理分析</div>
	<div style="width: 100%;margin-top: 10px;margin-left: 15px;margin-bottom:10px;">
	
		
		<div class="ht_title" style="height: 40px;padding:0 15px;">
			<div style="height: 30px;background-color: #cfd3e1;display: inline-block;color: white;margin-top: 5px;line-height: 30px;border-radius: 5px;padding:0 15px;">今日盈亏:{$agent_analysis.agent_yk|sprintf="%.2f",###}元</div>
			<div style="height: 30px;background-color: #7cacb8;display: inline-block;color: white;margin-top: 5px;line-height: 30px;border-radius: 5px;padding:0 15px;">新增代理:{$agent_analysis.agent_add.6}人</div>
			<div style="height: 30px;background-color: #d8a456;display: inline-block;color: white;margin-top: 5px;line-height: 30px;border-radius: 5px;padding:0 15px;">发展会员:{$agent_analysis.member_add.6}人</div>
			<div style="height: 30px;background-color: #978c65;display: inline-block;color: white;margin-top: 5px;line-height: 30px;border-radius: 5px;padding:0 15px;">新增代理发展会员存款:{$agent_analysis.member_deposit.6|sprintf="%.2f",###}元</div>
			<div style="height: 30px;background-color: #7c8381;display: inline-block;color: white;margin-top: 5px;line-height: 30px;border-radius: 5px;padding:0 15px;">新增代理发展会员取款:{$agent_analysis.member_withdraw.6|sprintf="%.2f",###}元</div>
			<div style="height: 30px;background-color: #6d6964;display: inline-block;color: white;margin-top: 5px;line-height: 30px;border-radius: 5px;padding:0 15px;">佣金发放:{$agent_analysis.yj_fafang.6|sprintf="%.2f",###}元</div>
		</div>
		
		
		
	</div>
	<div id="title_dl_content" class="title_content" style="height:500px;">
	
	
	
	<div style="width: 1670px;margin-top: 10px;margin-left: 15px;margin-bottom: 20px;overflow: hidden;">
		
		<div id="main3" style="width: 1670px;height: 400px;">
			
		</div>
<div style="margin-left:36%;font-size:20px;">近7日代理分析图</div>
	</div>
	</div>
</div>

<div style="width: 98%;background-color: #eeeeee;margin: 10px 20px;border: 1px solid #d2d2d2;" class="title_hrader">
	
	<div style="width: 100%;height: 30px;color: #0072a8;font-size: 20px;margin-top: 10px;margin-left: 15px;" id="title_tz" >投注分析</div>
	<div style="width: 100%;margin-top: 10px;margin-left: 15px;margin-bottom:10px;">
	
		
		<div class="ht_title" style="padding:0 10px;padding:0 15px;height: 40px;">
			<div style="height: 30px;background-color: #8a7d75;display: inline-block;color: white;margin-top: 5px;line-height: 30px;border-radius: 5px;padding:0 15px;">今日盈亏:{$lottery_analysis.today_yk|sprintf="%.2f",###}元</div>
			<div style="height: 30px;background-color: #7c8381;display: inline-block;color: white;margin-top: 5px;line-height: 30px;border-radius: 5px;padding:0 15px;">今日注数:{$lottery_analysis.today_zs}注</div>
			<div style="height: 30px;background-color: #4e8694;display: inline-block;color: white;margin-top: 5px;line-height: 30px;border-radius: 5px;padding:0 15px;">今日总额:{$lottery_analysis.today_ze|sprintf="%.2f",###}元</div>
			<div style="height: 30px;background-color: #b69a67;display: inline-block;color: white;margin-top: 5px;line-height: 30px;border-radius: 5px;padding:0 15px;">今日派奖:{$lottery_analysis.today_pj|sprintf="%.2f",###}元</div>
			<div style="height: 30px;background-color: #a5b5a9;display: inline-block;color: white;margin-top: 5px;line-height: 30px;border-radius: 5px;padding:0 15px;">今日投注人数:{$lottery_analysis.today_tz}人</div>
		</div>
		
		
		
	</div>
	<div id="title_tz_content"  class="title_content" style="height:1747px;">
	
	
	<div style="width: 100%;margin-top: 10px;margin-left: 15px;margin-bottom: 20px;overflow: hidden;width:1760px;">
		
		<div id="tbSecond_z" style="width: 1670px;height: 400px;">
			
		</div>
		
		<div style="margin-left:36%;font-size:20px;margin-bottom: 45px;">近7日所有彩种盈亏分析图</div>
		
		<div style="position: relative;width: 50%;height: 600px;display: inline-block;">
			<div id="tbSecond_b" style="width: 793px;height: 550px;float: left;">
			
		</div>
		<div style="font-size: 20px;display: inline-block;position: absolute;top: 80%;left: 338px">今日投注总额图</div>	
		</div>
		
		<div style="position: relative;width: 49%;height: 600px;display: inline-block;">
			<div id="tbSecond_b2" style="width: 777px;height: 550px;float: left;">
				
			</div>
			
			<div style="font-size: 20px;display: inline-block;position: absolute;top: 80%;left: 338px;">今日派彩图</div>	
		</div>
		<div id="tbSecond_b3" style="width:835px;height: 550px;float: left;">
			
		</div>
		
		<div id="tbSecond_b4" style="width: 751px;height: 550px;float: left;">
			
		</div>

	<div style="margin-left:348px;font-size:20px;display: inline-block;">今日投注人数图</div>	
<div style="margin-left:70%;font-size:20px;display: inline-block;">今日投注注数图</div>
	</div>
	</div>
	
</div>

<script type="text/javascript">
var dom = document.getElementById("main");
var myChart = echarts.init(dom);
var app = {};
option = null;
var posList = [
    'left', 'right', 'top', 'bottom',
    'inside',
    'insideTop', 'insideLeft', 'insideRight', 'insideBottom',
    'insideTopLeft', 'insideTopRight', 'insideBottomLeft', 'insideBottomRight'
];

app.config = {
    rotate: 90,
    align: 'left',
    verticalAlign: 'middle',
    position: 'insideBottom',
    distance: 15,
    onChange: function () {
        var labelOption = {
            normal: {
                rotate: app.config.rotate,
                align: app.config.align,
                verticalAlign: app.config.verticalAlign,
                position: app.config.position,
                distance: app.config.distance
            }
        };
        myChart.setOption({
            series: [{
                label: labelOption
            }, {
                label: labelOption
            }, {
                label: labelOption
            }, {
                label: labelOption
            }]
        });
    }
};


$('.title_hrader').click(function(){
	if($(this).children('.title_content').css('display')=='none'){
		$('.title_content').slideUp(200)
		$(this).children('.title_content').slideDown(200)
		
	}else{
		$('.title_content').slideUp(200)
		$(this).children('.title_content').slideUp(200)
		
	}
	
})

var labelOption = {
    normal: {
        show: true,
        position: app.config.position,
        distance: app.config.distance,
        align: app.config.align,
        verticalAlign: app.config.verticalAlign,
        rotate: app.config.rotate,
        formatter: '{c}  {name|{a}}',
        fontSize: 16,
	    rich: {
	            name: {
	                textBorderColor: '#fff'
	            }
	        }
    }
};

option = {
    color: ['#e4583e','#41b6ab', '#f0bf59','#37a2da','#fb7293','#8378ea','#4677ff'],
    tooltip: {
        trigger: 'axis',
        axisPointer: {
            type: 'shadow'
        }
    },
    legend: {
        data: ['线上充值', '线下充值', '人工充值', '会员提现','人工取出','彩金','返水']
    },
    toolbox: {
        show: true,
        orient: 'vertical',
        left: 'right',
        top: 'center',
        
    },
    calculable: true,
    xAxis: [
        {
            type: 'category',
            axisTick: {show: false},
            data: [{foreach($time as $it)}"{$it}",{/foreach}]
        }
    ],
    yAxis: [
        {
            type: 'value'
        }
    ],
    series: [
        {
            name: '线上充值',
            type: 'bar',
            barGap: 0,
            label: labelOption,
            data: [{foreach($today['xianshang_cz'] as $item)}{$item},{/foreach}]
        },
        {
            name: '线下充值',
            type: 'bar',
            label: labelOption,
            data: [{foreach($today['xianxia_cz'] as $item)}{$item},{/foreach}]
        },
        {
            name: '人工充值',
            type: 'bar',
            label: labelOption,
            data: [{foreach($today['rengong_cz'] as $item)}{$item},{/foreach}]
        },
        {
            name: '会员提现',
            type: 'bar',
            label: labelOption,
            data: [{foreach($today['member_tx'] as $item)}{$item},{/foreach}]
        },
        {
            name: '人工取出',
            type: 'bar',
            label: labelOption,
            data: [{foreach($today['rengong_tx'] as $item)}{$item},{/foreach}]
        },
        {
            name: '彩金',
            type: 'bar',
            label: labelOption,
            data: [{foreach($today['caijin'] as $item)}{$item},{/foreach}]
        },
        {
            name: '返水',
            type: 'bar',
            label: labelOption,
            data: [{foreach($today['fanshui'] as $item)}{$item},{/foreach}]
        }
    ]
};;

    myChart.setOption(option, true);

    

        </script>
        
        <script type="text/javascript">
        	var dom = document.getElementById("main2");
            var myChart = echarts.init(dom);
            var app = {};
            option = null;
            var posList = [
                'left', 'right', 'top', 'bottom',
                'inside',
                'insideTop', 'insideLeft', 'insideRight', 'insideBottom',
                'insideTopLeft', 'insideTopRight', 'insideBottomLeft', 'insideBottomRight'
            ];

            app.config = {
                rotate: 90,
                align: 'left',
                verticalAlign: 'middle',
                position: 'insideBottom',
                distance: 15,
                onChange: function () {
                    var labelOption = {
                        normal: {
                            rotate: app.config.rotate,
                            align: app.config.align,
                            verticalAlign: app.config.verticalAlign,
                            position: app.config.position,
                            distance: app.config.distance
                        }
                    };
                    myChart.setOption({
                        series: [{
                            label: labelOption
                        }, {
                            label: labelOption
                        }, {
                            label: labelOption
                        }, {
                            label: labelOption
                        }, {
                            label: labelOption
                        }]
                    });
                }
            };


            var labelOption = {
                normal: {
                    show: true,
                    position: app.config.position,
                    distance: app.config.distance,
                    align: app.config.align,
                    verticalAlign: app.config.verticalAlign,
                    rotate: app.config.rotate,
                    formatter: '{c}  {name|{a}}',
                    fontSize: 16,
                    rich: {
			            name: {
			                textBorderColor: '#fff'
			            }
			        }
                }
            };

            option = {
                color: ['#3398db','#3c5e91','#da4f70','#169c78'],
                tooltip: {
                    trigger: 'axis',
                    axisPointer: {
                        type: 'shadow'
                    }
                },
                legend: {
                    data: ['新增存款', '新增代理', '新增会员', '新增试玩']
                },
                toolbox: {
                    show: true,
                    orient: 'vertical',
                    left: 'right',
                    top: 'center',
                    
                },
                calculable: true,
                xAxis: [
                    {
                        type: 'category',
                        axisTick: {show: false},
                        data: [{foreach($time as $it)}"{$it}",{/foreach}]
                    }
                ],
                yAxis: [
                    {
                        type: 'value'
                    }
                ],
                series: [
                    {
                        name: '新增存款',
                        type: 'bar',
                        barGap: 0,
                        label: labelOption,
                        data: [{foreach($member_people['add_chongzhi'] as $it)}"{$it}",{/foreach}]
                    },
                    {
                        name: '新增代理',
                        type: 'bar',
                        label: labelOption,
                        data: [{foreach($member_people['add_dl'] as $it)}"{$it}",{/foreach}]
                    },
                    {
                        name: '新增会员',
                        type: 'bar',
                        label: labelOption,
                        data: [{foreach($member_people['add_huiyuan'] as $it)}"{$it}",{/foreach}]
                    },
                    {
                        name: '新增试玩',
                        type: 'bar',
                        label: labelOption,
                        data: [{foreach($member_people['add_swmember'] as $it)}"{$it}",{/foreach}]
                    }
                ]
            };;

                myChart.setOption(option, true);

        </script>
        
        <script type="text/javascript">
            var myChart = echarts.init(document.getElementById("main3"));
            var option = {
                title:{
                    text:""
                },
                tooltip:{
                    text:"this is tool tip"
                },
                legend:{
                    data:['新增代理','发展会员']
                },
                xAxis:{
                    data:[{foreach ($time as $it)}
							"{$it}",
							{/foreach}]
                },
				yAxis: {},
                series:[ 
	                {
			            name:'新增代理',
			            type:'bar',
			            stack: '广告',
			            data:[{foreach ($agent_analysis['agent_add'] as $v)}
								{$v},
								{/foreach}],
				itemStyle:{
                     normal:{
                         color:'#e4583e'
                            }
                          },
			        },
			        {
			            name:'发展会员',
			            type:'bar',
			            data:[{foreach ($agent_analysis['member_add'] as $v)}
								{$v},
								{/foreach}],
				itemStyle:{
                     normal:{
                         color:'#41b6ab'
                            }
                          },
			          
			        }
			        ]
            };

             myChart.setOption(option);

        </script>
        
        
        <script type="text/javascript">
            var tbSecond = echarts.init(document.getElementById("tbSecond"));
            // alert(tbSecond);
            var pieOption = {
                     title : {
				        text: '',
				        subtext: '',
				        x:'center'
				    },
				    tooltip : {
				        trigger: 'item',
				        formatter: "{a} <br/>{b} : {c} ({d}%)"
				    },
				    legend: {
				        x : 'center',
				        y : 'top',
				        data:['线上充值','线下充值','人工充值']
				    },
				 
				    calculable : true,
				    series : [
				        {
				            name:'今日充值总额：{$today.chongzhi.6}',
				            type:'pie',
				            radius : [30, 110],
				            center : ['50%', '50%'],
				            roseType : 'area',
				            data:[
				                {value:{$today.xianshang_cz.6}, name:'线上充值'},
				                {value:{$today.xianxia_cz.6}, name:'线下充值'},
				                {value:{$today.rengong_cz.6}, name:'人工充值'},

				            ]
				        }
				    ]
                };
            // alert(pieOption);
            tbSecond.setOption(pieOption);

        </script>
        
        <script type="text/javascript">
            var tbSecond = echarts.init(document.getElementById("tbSecond2"));
            // alert(tbSecond);
            var pieOption = {
                    title : {
				        text: '',
				        subtext: '',
				        x:'center'
				    },
				    tooltip : {
				        trigger: 'item',
				        formatter: "{a} <br/>{b} : {c} ({d}%)"
				    },
				    legend: {
				        x : 'center',
				        y : 'top',
				        data:['会员提现','人工取出']
				    },
				 
				    calculable : true,
				    series : [
				        {
				            name:'今日提现总额：{$today.tixian.6}',
				            type:'pie',
				            radius : [30, 110],
				            center : ['50%', '50%'],
				            roseType : 'area',
				            data:[
				                {value:{$today.member_tx.6}, name:'会员提现'},
				                {value:{$today.rengong_tx.6}, name:'人工取出'},
				                
				            ]
				        }
				    ]
                };
            // alert(pieOption);
            tbSecond.setOption(pieOption);

        </script>
        
        
        <script type="text/javascript">
            var tbSecond = echarts.init(document.getElementById("tbSecond_z"));
            // alert(tbSecond);
            var pieOption = {
                      title: {
				        text: '',
				        subtext: ''
				    },
				    tooltip: {
				        trigger: 'axis'
				    },
				    legend: {
				        data:[{foreach($lottery_analysis['yk'] as $it)}"{$it.name}",{/foreach}]
				    },
				    toolbox: {
				        show: true,
//				        feature: {
//				            dataZoom: {
//				                yAxisIndex: 'none'
//				            },
//				            dataView: {readOnly: false},
//				            magicType: {type: ['line', 'bar']},
//				            restore: {},
//				            saveAsImage: {}
//				        }
				    },
				    xAxis:  {
				        type: 'category',
				        boundaryGap: false,
				        data: [{foreach($time as $it)}"{$it}",{/foreach}]
				    },
				    yAxis: {
				        type: 'value',
				        axisLabel: {
				            formatter: '{value} '
				        }
				    },
				    series: [
					{foreach($lottery_analysis['yk'] as $item)}  
				        {
				            name:'{$item.name}',
				            itemStyle: {
				                normal: {
				                    color: '#{$item.color}'
				                }
				            },
				            type:'line',
				            data:[{foreach($item['value'] as $it)}{$it},{/foreach}],
				            markPoint: {
				                data: [
				                    {type: 'max', name: '最大值'},
				                    {type: 'min', name: '最小值'}
				                ]
				            },
				           
				        },
				      {/foreach}
				         
				    ]
                };
            // alert(pieOption);
            tbSecond.setOption(pieOption);

        </script>
        
       
        
        <script type="text/javascript">
            var tbSecond = echarts.init(document.getElementById("tbSecond_b"));
            // alert(tbSecond);
            var pieOption = {
                    title : {
				        text: '',
				        subtext: '',
				        x:'center'
				    },
				    tooltip : {
				        trigger: 'item',
				        formatter: "{a} <br/>{b} : {c} ({d}%)"
				    },
				    legend: {
				        x : 'center',
				        y : 'top',
				        data:[{foreach($lottery_analysis['tz'] as $item)}'{$item.name}',{/foreach}]
				    },
				 
				    calculable : true,
				    series : [
				        {
				            name:'今日投注总额：{$lottery_analysis.today_ze}',
				            type:'pie',
				            radius : [30, 110],
				            center : ['50%', '50%'],
				            roseType : 'area',
				            data:[
								{foreach($lottery_analysis['tz'] as $item)}
				                {value:{$item.value}, name:'{$item.name}'},
				            	{/foreach}
				            ]
				        }
				    ]
                };
            // alert(pieOption);
            tbSecond.setOption(pieOption);

        </script>
        
        <script type="text/javascript">
            var tbSecond = echarts.init(document.getElementById("tbSecond_b2"));
            // alert(tbSecond);
            var pieOption = {
                   title : {
				        text: '',
				        subtext: '',
				        x:'center'
				    },
				    tooltip : {
				        trigger: 'item',
				        formatter: "{a} <br/>{b} : {c} ({d}%)"
				    },
				    legend: {
				        x : 'center',
				        y : 'top',
				        data:[{foreach($lottery_analysis['tz'] as $item)}'{$item.name}',{/foreach}]
				    },
				 
				    calculable : true,
				    series : [
				        {
				            name:'今日派彩总额:{$lottery_analysis.today_pj}',
				            type:'pie',
				            radius : [30, 110],
				            center : ['50%', '50%'],
				            roseType : 'area',
				            data:[
				                {foreach($lottery_analysis['zj'] as $item)}
				                {value:{$item.value}, name:'{$item.name}'},
				            	{/foreach}
				            ]
				        }
				    ]
                };
            // alert(pieOption);
            tbSecond.setOption(pieOption);

        </script>
        
        <script type="text/javascript">
            var tbSecond = echarts.init(document.getElementById("tbSecond_b3"));
            // alert(tbSecond);
            var pieOption = {
                   title : {
				        text: '',
				        subtext: '',
				        x:'center'
				    },
				    tooltip : {
				        trigger: 'item',
				        formatter: "{a} <br/>{b} : {c} ({d}%)"
				    },
				    legend: {
				        x : 'center',
				        y : 'top',
				        data:[{foreach($lottery_analysis['tz'] as $item)}'{$item.name}',{/foreach}]
				    },
				 
				    calculable : true,
				    series : [
				        {
				            name:'今日投注人数：{$lottery_analysis.today_tz}',
				            type:'pie',
				            radius : [30, 110],
				            center : ['50%', '50%'],
				            roseType : 'area',
				            data:[
				                {foreach($lottery_analysis['rs'] as $item)}
				                {value:{$item.value}, name:'{$item.name}'},
				            	{/foreach}
				            ]
				        }
				    ]
                };
            // alert(pieOption);
            tbSecond.setOption(pieOption);

        </script>
        
        <script type="text/javascript">
            var tbSecond = echarts.init(document.getElementById("tbSecond_b4"));
            // alert(tbSecond);
            var pieOption = {
                   title : {
				        text: '',
				        subtext: '',
				        x:'center'
				    },
				    tooltip : {
				        trigger: 'item',
				        formatter: "{a} <br/>{b} : {c} ({d}%)"
				    },
				    legend: {
				        x : 'center',
				        y : 'top',
				        data:[{foreach($lottery_analysis['zs'] as $item)}'{$item.name}',{/foreach}]
				    },
				 
				    calculable : true,
				    series : [
				        {
				            name:'今日投注注数：{$lottery_analysis.today_zs}',
				            type:'pie',
				            radius : [30, 110],
				            center : ['50%', '50%'],
				            roseType : 'area',
				            data:[
				                {foreach($lottery_analysis['zs'] as $item)}
				                {value:{$item.value}, name:'{$item.name}'},
				            	{/foreach}
				            ]
				        }
				    ]
                };
            // alert(pieOption);
            tbSecond.setOption(pieOption);
            localStorage.clear()
        </script>
{/block}






